package cn.wanda.bi.sunshine.platform.server.client;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import cn.wanda.bi.sunshine.platform.server.client.request.OpenimSendMsgRequest;
import cn.wanda.bi.sunshine.platform.server.client.response.OpenimSendMsgResponse;


/**
 * Created by wangfupeng1
 */


@FeignClient(name = "tencentIMClient", url = "${client.tencent.im.url}")
public interface TencentIMClient {

	/**
     * 单发单聊消息
     *
     * @{@link https://www.qcloud.com/document/product/269/2282 }
     */
    @RequestMapping(method = {RequestMethod.POST}, value = {"/v4/openim/sendmsg"})
    String openimSendmsg(
    	@RequestBody OpenimSendMsgRequest request,
        @RequestParam("identifier") String identifier,
        @RequestParam("sdkappid") int sdkAppId,
        @RequestParam("contenttype") String contentType,
        @RequestParam("random") int random,
        @RequestParam("usersig") String usersig
        );
	
	
	
	

}
